import request from '@/utils/request'
//添加部门
export function sysDepartment_add(data) {
return request({
url: '/api/sysDepartment/add',
method: 'post',
data
})
}
//修改部门
export function sysDepartment_update(data) {
return request({
url: '/api/sysDepartment/update',
method: 'post',
data
})
}
//删除部门
export function sysDepartment_delete(data) {
return request({
url: '/api/sysDepartment/delete/' + data.id,
method: 'post',
data
})
}
//部门详情
export function sysDepartment_info(param) {
return request({
url: '/api/sysDepartment/info/' + param.id,
method: 'get',
param
})
}
//部门分页列表
export function sysDepartment_getPageList(data) {
return request({
url: '/api/sysDepartment/getPageList',
method: 'post',
data
})
}
//获取所有部门的树形列表
export function sysDepartment_getAllDepartmentList(data) {
return request({
url: '/api/sysDepartment/getAllDepartmentList',
method: 'post',
data
})
}
//获取所有部门的树形列表
export function sysDepartment_getDepartmentTree(data) {
return request({
url: '/api/sysDepartment/getDepartmentTree',
method: 'post',
data
})
}
//部门列表
export function sysDepartment_getList(data) {
return request({
url: '/api/sysDepartment/getList',
method: 'post',
data
})
}
